package com.zhiliao.module.web.cms.service;

import com.github.pagehelper.PageInfo;
import com.zhiliao.common.base.BaseService;
import com.zhiliao.module.web.cms.vo.TCmsAdVo;
import com.zhiliao.mybatis.model.TCmsAd;
import com.zhiliao.mybatis.model.TCmsAdGroup;

import java.util.List;

/**
 * Description:
 *
 * @author qirong
 * @create 2018-10-26
 */
public interface AdService extends BaseService<TCmsAd,Integer>{

    /**
     * toJavascript
     * @param id
     * @return
     */
    String toJavascript(Object id);

    /**
     * save
     * @param pojo
     * @return
     */
    String save(TCmsAdGroup pojo);

    /**
     * update
     * @param pojo
     * @return
     */
    String update(TCmsAdGroup pojo);

    /**
     * findVoListByStatus
     * @param status
     * @return
     */
    List<TCmsAdVo> findVoListByStatus(Integer status);

    /**
     * findById
     * @param id
     * @return
     */
    TCmsAdGroup findById(Object id);

    /**
     * findByIdAndEffective
     * @param id
     * @return
     */
    TCmsAd findByIdAndEffective(Integer id);

    /**
     * findList
     * @param pojo
     * @return
     */
    List<TCmsAdGroup> findList(TCmsAdGroup pojo);

    /**
     * page
     * @param pageNumber
     * @param pageSize
     * @param adGroup
     * @return
     */
    PageInfo<TCmsAdGroup> page(Integer pageNumber, Integer pageSize,TCmsAdGroup adGroup);

    /**
     * page
     * @param pageNumber
     * @param pageSize
     * @param status
     * @return
     */
     PageInfo<TCmsAdVo> page(Integer pageNumber, Integer pageSize,Integer status);

    /**
     * deleteGroup
     * @param ids
     * @return
     */
    String deleteGroup(Integer[] ids);
}
